package com.rtx.edi.model.log.po;

import com.baomidou.mybatisplus.annotation.TableName;
import com.rtx.edi.model.base.BaseEntity;
import java.math.BigDecimal;
import java.time.LocalDateTime;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

/**
 * <p>
 * api请求日志表 
 * </p>
 *
 * @author wq
 * @since 2023-03-14
 */
@TableName("pl_api_request_log")
@ApiModel(value = "PlApiRequestLog对象", description = "api请求日志表 ")
public class PlApiRequestLog extends BaseEntity {

    @ApiModelProperty("公司id")
    private Long companyId;

    @ApiModelProperty("日志流水号")
    private String logNo;

    @ApiModelProperty("日志类型")
    private Integer logType;

    @ApiModelProperty("业务场景id")
    private Long sceneId;

    @ApiModelProperty("业务场景名称")
    private String sceneName;

    @ApiModelProperty("请求公司id")
    private Long requestCompanyId;

    @ApiModelProperty("请求公司名称")
    private String requestCompanyName;

    @ApiModelProperty("请求应用id")
    private Long requestApplicationId;

    @ApiModelProperty("请求应用名称")
    private String requestApplicationName;

    @ApiModelProperty("请求应用环境id")
    private Long requestEnvironmentId;

    @ApiModelProperty("请求应用环境名称")
    private String requestEnvironmentName;

    @ApiModelProperty("接收公司id")
    private Long responseCompanyId;

    @ApiModelProperty("接收公司名称")
    private String responseCompanyName;

    @ApiModelProperty("接收应用id")
    private Long responseApplicationId;

    @ApiModelProperty("接收应用名称")
    private String responseApplicationName;

    @ApiModelProperty("接收应用环境id")
    private Long responseEnvironmentId;

    @ApiModelProperty("接收应用环境名称")
    private String responseEnvironmentName;

    @ApiModelProperty("请求地址")
    private String requestUrl;

    @ApiModelProperty("请求接口id")
    private Long requestInterfaceId;

    @ApiModelProperty("请求接口编号")
    private String requestInterfaceNo;

    @ApiModelProperty("请求接口名称")
    private String requestInterfaceName;

    @ApiModelProperty("请求ip")
    private String requestIp;

    @ApiModelProperty("请求时间")
    private LocalDateTime requestTime;

    @ApiModelProperty("请求状态")
    private Integer requestStatus;

    @ApiModelProperty("请求数据1")
    private String requestData1;

    @ApiModelProperty("请求数据2")
    private String requestData2;

    @ApiModelProperty("请求数据3")
    private String requestData3;

    @ApiModelProperty("请求数据4")
    private BigDecimal requestData4;

    @ApiModelProperty("请求数据5")
    private String requestData5;

    @ApiModelProperty("响应码")
    private Integer responseCode;

    @ApiModelProperty("响应时间")
    private LocalDateTime responseTime;

    @ApiModelProperty("异常描述")
    private String exceptionDesc;

    @ApiModelProperty("重试次数")
    private Integer retryCount;

    @ApiModelProperty("最后重试时间")
    private LocalDateTime lastRetryTime;

    @ApiModelProperty("备注")
    private String remark;
    
    @ApiModelProperty("报文关键字段")
    private String logkey;

    public String getLogkey() {
		return logkey;
	}

	public void setLogkey(String logkey) {
		this.logkey = logkey;
	}

	public Long getCompanyId() {
        return companyId;
    }

    public void setCompanyId(Long companyId) {
        this.companyId = companyId;
    }

    public String getLogNo() {
        return logNo;
    }

    public void setLogNo(String logNo) {
        this.logNo = logNo;
    }

    public Integer getLogType() {
        return logType;
    }

    public void setLogType(Integer logType) {
        this.logType = logType;
    }

    public Long getSceneId() {
        return sceneId;
    }

    public void setSceneId(Long sceneId) {
        this.sceneId = sceneId;
    }

    public String getSceneName() {
        return sceneName;
    }

    public void setSceneName(String sceneName) {
        this.sceneName = sceneName;
    }

    public Long getRequestCompanyId() {
        return requestCompanyId;
    }

    public void setRequestCompanyId(Long requestCompanyId) {
        this.requestCompanyId = requestCompanyId;
    }

    public String getRequestCompanyName() {
        return requestCompanyName;
    }

    public void setRequestCompanyName(String requestCompanyName) {
        this.requestCompanyName = requestCompanyName;
    }

    public Long getRequestApplicationId() {
        return requestApplicationId;
    }

    public void setRequestApplicationId(Long requestApplicationId) {
        this.requestApplicationId = requestApplicationId;
    }

    public String getRequestApplicationName() {
        return requestApplicationName;
    }

    public void setRequestApplicationName(String requestApplicationName) {
        this.requestApplicationName = requestApplicationName;
    }

    public Long getRequestEnvironmentId() {
        return requestEnvironmentId;
    }

    public void setRequestEnvironmentId(Long requestEnvironmentId) {
        this.requestEnvironmentId = requestEnvironmentId;
    }

    public String getRequestEnvironmentName() {
        return requestEnvironmentName;
    }

    public void setRequestEnvironmentName(String requestEnvironmentName) {
        this.requestEnvironmentName = requestEnvironmentName;
    }

    public Long getResponseCompanyId() {
        return responseCompanyId;
    }

    public void setResponseCompanyId(Long responseCompanyId) {
        this.responseCompanyId = responseCompanyId;
    }

    public String getResponseCompanyName() {
        return responseCompanyName;
    }

    public void setResponseCompanyName(String responseCompanyName) {
        this.responseCompanyName = responseCompanyName;
    }

    public Long getResponseApplicationId() {
        return responseApplicationId;
    }

    public void setResponseApplicationId(Long responseApplicationId) {
        this.responseApplicationId = responseApplicationId;
    }

    public String getResponseApplicationName() {
        return responseApplicationName;
    }

    public void setResponseApplicationName(String responseApplicationName) {
        this.responseApplicationName = responseApplicationName;
    }

    public Long getResponseEnvironmentId() {
        return responseEnvironmentId;
    }

    public void setResponseEnvironmentId(Long responseEnvironmentId) {
        this.responseEnvironmentId = responseEnvironmentId;
    }

    public String getResponseEnvironmentName() {
        return responseEnvironmentName;
    }

    public void setResponseEnvironmentName(String responseEnvironmentName) {
        this.responseEnvironmentName = responseEnvironmentName;
    }

    public String getRequestUrl() {
        return requestUrl;
    }

    public void setRequestUrl(String requestUrl) {
        this.requestUrl = requestUrl;
    }

    public Long getRequestInterfaceId() {
        return requestInterfaceId;
    }

    public void setRequestInterfaceId(Long requestInterfaceId) {
        this.requestInterfaceId = requestInterfaceId;
    }

    public String getRequestInterfaceNo() {
        return requestInterfaceNo;
    }

    public void setRequestInterfaceNo(String requestInterfaceNo) {
        this.requestInterfaceNo = requestInterfaceNo;
    }

    public String getRequestInterfaceName() {
        return requestInterfaceName;
    }

    public void setRequestInterfaceName(String requestInterfaceName) {
        this.requestInterfaceName = requestInterfaceName;
    }

    public String getRequestIp() {
        return requestIp;
    }

    public void setRequestIp(String requestIp) {
        this.requestIp = requestIp;
    }

    public LocalDateTime getRequestTime() {
        return requestTime;
    }

    public void setRequestTime(LocalDateTime requestTime) {
        this.requestTime = requestTime;
    }

    public Integer getRequestStatus() {
        return requestStatus;
    }

    public void setRequestStatus(Integer requestStatus) {
        this.requestStatus = requestStatus;
    }

    public String getRequestData1() {
        return requestData1;
    }

    public void setRequestData1(String requestData1) {
        this.requestData1 = requestData1;
    }

    public String getRequestData2() {
        return requestData2;
    }

    public void setRequestData2(String requestData2) {
        this.requestData2 = requestData2;
    }

    public String getRequestData3() {
        return requestData3;
    }

    public void setRequestData3(String requestData3) {
        this.requestData3 = requestData3;
    }

    public BigDecimal getRequestData4() {
        return requestData4;
    }

    public void setRequestData4(BigDecimal requestData4) {
        this.requestData4 = requestData4;
    }

    public String getRequestData5() {
        return requestData5;
    }

    public void setRequestData5(String requestData5) {
        this.requestData5 = requestData5;
    }

    public Integer getResponseCode() {
        return responseCode;
    }

    public void setResponseCode(Integer responseCode) {
        this.responseCode = responseCode;
    }

    public LocalDateTime getResponseTime() {
        return responseTime;
    }

    public void setResponseTime(LocalDateTime responseTime) {
        this.responseTime = responseTime;
    }

    public String getExceptionDesc() {
        return exceptionDesc;
    }

    public void setExceptionDesc(String exceptionDesc) {
        this.exceptionDesc = exceptionDesc;
    }

    public Integer getRetryCount() {
        return retryCount;
    }

    public void setRetryCount(Integer retryCount) {
        this.retryCount = retryCount;
    }

    public LocalDateTime getLastRetryTime() {
        return lastRetryTime;
    }

    public void setLastRetryTime(LocalDateTime lastRetryTime) {
        this.lastRetryTime = lastRetryTime;
    }

    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }

    @Override
    public String toString() {
        return "PlApiRequestLog{" +
        "companyId=" + companyId +
        ", logNo=" + logNo +
        ", logType=" + logType +
        ", sceneId=" + sceneId +
        ", sceneName=" + sceneName +
        ", requestCompanyId=" + requestCompanyId +
        ", requestCompanyName=" + requestCompanyName +
        ", requestApplicationId=" + requestApplicationId +
        ", requestApplicationName=" + requestApplicationName +
        ", requestEnvironmentId=" + requestEnvironmentId +
        ", requestEnvironmentName=" + requestEnvironmentName +
        ", responseCompanyId=" + responseCompanyId +
        ", responseCompanyName=" + responseCompanyName +
        ", responseApplicationId=" + responseApplicationId +
        ", responseApplicationName=" + responseApplicationName +
        ", responseEnvironmentId=" + responseEnvironmentId +
        ", responseEnvironmentName=" + responseEnvironmentName +
        ", requestUrl=" + requestUrl +
        ", requestInterfaceId=" + requestInterfaceId +
        ", requestInterfaceNo=" + requestInterfaceNo +
        ", requestInterfaceName=" + requestInterfaceName +
        ", requestIp=" + requestIp +
        ", requestTime=" + requestTime +
        ", requestStatus=" + requestStatus +
        ", requestData1=" + requestData1 +
        ", requestData2=" + requestData2 +
        ", requestData3=" + requestData3 +
        ", requestData4=" + requestData4 +
        ", requestData5=" + requestData5 +
        ", responseCode=" + responseCode +
        ", responseTime=" + responseTime +
        ", exceptionDesc=" + exceptionDesc +
        ", retryCount=" + retryCount +
        ", lastRetryTime=" + lastRetryTime +
        ", remark=" + remark +
        "}";
    }
}
